<html>
	<head>
		
		<meta name="layout" content="main" />
		<title>Árbol de directorios</title>
		
		<script type="text/javascript" src="/${grails.util.Metadata.current.'app.name'}/js/jquery/jquery-ui-1.8.18.custom.js"></script>
		
		<wcm:myTag />
	</head>
	<body>

	
		<table class="table table-hover">
			<thead>
				<tr>
					<th>Pàgina</th>
					<th>Modificat per</th>
					<th>Últim canvi</th>
				</tr>
			</thead>
			<tbody>
				<g:each in="${content}" var="c">
					<tr class="order-1">
	 					<td>${c.title}</td>
						<td>${c.title}</td>
						<td>${c.title}</td>
					</tr>
					<g:if test="${c.children.size()}">
						<g:render template="newtreeTableNode" model="[c:c.children, level:2]"/>
					</g:if>
 				</g:each>	
			</tbody>
		</table>
	</body>
</html>